#pragma once

// Copyright (c) 2010 Manuel Peinado Gallego <manuel.peinado@gmail.com>
// Distributed under the MIT license


#include "Common.h"
#include "NodeTree.h"
class Node;

struct NodeHandle
{
    NodeHandle()
    {
    }

    NodeHandle(NodeIterator it)
    : m_it(it)
    {
    }

    ref<Node> getNode() const
    {
        return *m_it;
    }

    NodeIterator getIterator() const
    {
        return m_it;
    }

    NodeIterator m_it;
};
